package com.markerhub.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.markerhub.entity.SysGoods;
import com.markerhub.mapper.SysGoodsMapper;
import com.markerhub.service.SysDictValueService;
import com.markerhub.service.SysGoodsService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author jsx on 2023/2/13
 **/
@Service
public class SysGoodsServiceImpl extends ServiceImpl<SysGoodsMapper, SysGoods> implements SysGoodsService {

    @Override
    public SysGoods getGoods(String id) {
        return this.baseMapper.selectSysGoods(id);
    }

    @Override
    public Page<SysGoods> getList(Page page, String name, String shopName) {
        return this.baseMapper.selectGoodsList(page,name,shopName);
    }

    @Override
    public List<SysGoods> getListByStatus(String status, String name, String userId,String reject) {
        return this.baseMapper.selectGoodsListByStatus(status,name,userId,reject);
    }
}
